宝塔Linux安装Java项目管理器 checking JAVA_HOME... failed

本文详细介绍如何在阿里云Ubuntu系统下使用Java项目管理器安装并配置多个版本的Tomcat服务器,包括环境变量设置、catalina.sh文件修改及端口调整等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

那么恭喜你,中了坑

首先博主(阿里云的Ubuntu系统)推荐不要用Java项目管理器了
(其他系统应该可以, 目前百度云的window系统可以用, 没出现任何bug),
目前博主也没有找到解决方法
已经各种尝试了

解决方案:

Java项目管理器无非就有一个映射, 和二级域名有用吧, 其他的都无所谓了
那么. 还有一个主要的功能, Java项目管理器可以安装多个Tomcat !!! 记住是多个不同版本或者相同版本的Tomcat服务器.
博主是用Java项目管理器安装了3个Tomcat服务器 : 分别是7 8 9 版本另外还单独从软件商店里面安装了一个Tomcat7
在这里插入图片描述
在这里插入图片描述
其中文件目录为:
在这里插入图片描述

此处注意: Java项目管理器就没用了!!

接下来, Tomcat安装好了, 然后进入配置环境变量阶段

第一步
安装jdk(jdk安装本处不提供 , 可以自行百度)
第二步
配置多个Tomcat 的环境变量以及区分开(点击下面的连接)
内容点我
介绍:
在这里插入图片描述
为了使环境变量立即生效,运行以下命令

source /etc/environment

接下来开始修改每个Tomcat文件夹里面的bin目录中的
catalina.sh 文件, 注意是每个都需要修改

第三步
修改每个Tomcat文件夹里面的bin目录中的catalina.sh 文件
export后面的内容 就是之前在环境变量 ( /etc/environment )里面自己写的
$CATALINA_BASE_版本号 $CATALINA_BASE_版本号
记清楚自己的后缀
在这里插入图片描述
修改完所有的Tomcat服务器后进入下一步
第四步
此处修改四个Tomcat服务器的端口(文件地址: /Tomcat/conf/server.xml)
此处以一个为例
在这里插入图片描述
现在准备工作全部完成
第五步
分别进入每个 Tomcat服务器的bin目录
启动四个Tomcat服务器

sh startup.sh

在这里插入图片描述
全部成功

二级域名

此处二级域名
看博主另外一篇文章
https://blog.csdn.net/qq_21480147/article/details/100085215

[root@VM-24-11-opencloudos nginx-1.27.5]# ./configure --add-module=/usr/local/fastdfs-nginx-module checking for OS + Linux 6.6.47-12.oc9.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 12.3.1 20230912 (OpenCloudOS 12.3.1.3-1) (Tencent Compiler 12.3.1.3) checking for gcc -pipe switch ... found checking for -Wl,-E switch ... found checking for gcc builtin atomic operations ... found checking for C99 variadic macros ... found checking for gcc variadic macros ... found checking for gcc builtin 64 bit byteswap ... found checking for unistd.h ... found checking for inttypes.h ... found checking for limits.h ... found checking for sys/filio.h ... not found checking for sys/param.h ... found checking for sys/mount.h ... found checking for sys/statvfs.h ... found checking for crypt.h ... found checking for Linux specific features checking for epoll ... found checking for EPOLLRDHUP ... found checking for EPOLLEXCLUSIVE ... found checking for eventfd() ... found checking for O_PATH ... found checking for sendfile() ... found checking for sendfile64() ... found checking for sys/prctl.h ... found checking for prctl(PR_SET_DUMPABLE) ... found checking for prctl(PR_SET_KEEPCAPS) ... found checking for capabilities ... found checking for crypt_r() ... found checking for sys/vfs.h ... found checking for BPF sockhash ... found checking for SO_COOKIE ... found checking for UDP_SEGMENT ... found checking for nobody group ... found checking for poll() ... found checking for /dev/poll ... not found checking for kqueue ... not found checking for crypt() ... not found checking for crypt() in libcrypt ... found checking for F_READAHEAD ... not found checking for posix_fadvise() ... found checking for O_DIRECT ... found checking for F_NOCACHE ... not found checking for directio() ... not found checking for statfs() ... found checking for statvfs() ... found checking for dlopen() ... found checking for sched_yield() ... found checking for sched_setaffinity() ... found checking for SO_SETFIB ... not found checking for SO_REUSEPORT ... found checking for SO_ACCEPTFILTER ... not found checking for SO_BINDANY ... not found checking for IP_TRANSPARENT ... found checking for IP_BINDANY ... not found checking for IP_BIND_ADDRESS_NO_PORT ... found checking for IP_RECVDSTADDR ... not found checking for IP_SENDSRCADDR ... not found checking for IP_PKTINFO ... found checking for IPV6_RECVPKTINFO ... found checking for IP_MTU_DISCOVER ... found checking for IPV6_MTU_DISCOVER ... found checking for IP_DONTFRAG ... not found checking for IPV6_DONTFRAG ... found checking for TCP_DEFER_ACCEPT ... found checking for TCP_KEEPIDLE ... found checking for TCP_FASTOPEN ... found checking for TCP_INFO ... found checking for accept4() ... found checking for int size ... 4 bytes checking for long size ... 8 bytes checking for long long size ... 8 bytes checking for void * size ... 8 bytes checking for uint32_t ... found checking for uint64_t ... found checking for sig_atomic_t ... found checking for sig_atomic_t size ... 4 bytes checking for socklen_t ... found checking for in_addr_t ... found checking for in_port_t ... found checking for rlim_t ... found checking for uintptr_t ... uintptr_t found checking for system byte ordering ... little endian checking for size_t size ... 8 bytes checking for off_t size ... 8 bytes checking for time_t size ... 8 bytes checking for AF_INET6 ... found checking for setproctitle() ... not found checking for pread() ... found checking for pwrite() ... found checking for pwritev() ... found checking for strerrordesc_np() ... found checking for localtime_r() ... found checking for clock_gettime(CLOCK_MONOTONIC) ... found checking for posix_memalign() ... found checking for memalign() ... found checking for mmap(MAP_ANON|MAP_SHARED) ... found checking for mmap("/dev/zero", MAP_SHARED) ... found checking for System V shared memory ... found checking for POSIX semaphores ... found checking for struct msghdr.msg_control ... found checking for ioctl(FIONBIO) ... found checking for ioctl(FIONREAD) ... found checking for struct tm.tm_gmtoff ... found checking for struct dirent.d_namlen ... not found checking for struct dirent.d_type ... found checking for sysconf(_SC_NPROCESSORS_ONLN) ... found checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found checking for openat(), fstatat() ... found checking for getaddrinfo() ... found configuring additional modules adding module in /usr/local/fastdfs-nginx-module ./configure: error: no /usr/local/fastdfs-nginx-module/config was found [root@VM-24-11-opencloudos nginx-1.27.5]# make make: *** No rule to make target 'build', needed by 'default'. Stop. [root@VM-24-11-opencloudos nginx-1.27.5]# make insatll make: *** No rule to make target 'insatll'. Stop.
最新发布
06-06
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值